{extends file="layout.tpl"}
{block name="content"}
<div class="box-content box-detail-game">
{if is_flash($game['file_data'])}
	<div class="gplay-now">
		<div class="gpplay-title">
			<h2><span>{$game['name']}</span></h2>
		</div>
		<div class="gplay-start">
			<center>
				<script type="text/javascript">
					flash_write('{$game['file_data']}',704,529);
				</script>
			</center>
		</div>
		<div class="gplay-control">
			<!-- 
			<ul class="button_gameplay">
                 <li class="member"><span><p>73</p> &nbsp; người chơi</span> </li>
                 <li class="refre"> </li>
                 <li class="zoom_in"> </li>
                 <li class="horizo"> </li>
                 <li class="zoom_out"> 
                 	<a href="javascript:void(0)"><img src="images/zoom_in.png" title="Xem toàn màn hình"></a>
                 </li>
                 <li class="zoomreset">
                 	<a href="javascript:void(0)"><img src="images/zoom_fit.png" title="Xem toàn màn hình"></a>
                 </li>
                 <li class="lightscreen"> </li>
                 <li class="favorite"> </li>
            </ul>
            -->
		</div>
	</div>
	<div class="game-des">
		<div class="game-des-title">
			Hướng dẫn chơi
		</div>
		<div class="game-des-content">
			<div class="game-des-img">
				<img alt="{$game['name']}" src="{$game['image']}">
			</div>
			<div class="game-des-info">
				<p>{$game['introtext']}</p>
			</div>
		</div>
	</div>
	<div class="game-comment">
		<div class="game-comment-title">Bình luận</div>
		<div class="fb-comments" data-href="{current_url()}" data-num-posts="10" data-width="756" fb-xfbml-state="rendered"></div>
	</div>
{else}
	<div class="mt10">
		<div class="detail-title clr _bdot _mp20">
			<span class="fl strong _f11">
				{$game['name']} <img alt="" src="{url path="images/navRow.png"}">
			</span>
			<span class="fr _cl9 _f11">
				{$new['date']}
			</span>
		</div>
		<div class="mcontent p5">
			<h3 class="bgh3 ">Tải game <b class="blu3">{$game['name']}</b></h3>
			<ol class="list-dowload _pt10">
				{if $game['file_jar']}
				<li class="frist">
					Máy Java: <img alt="Dowload" src="{url path="images/icon/download.gif"}" />
					<a title="Tải game .jar" href="{site_url($game['download'])}?type=jar">
						<strong>Jar</strong>
					</a>
				</li>
				{/if}
				{if $game['file_jad']}
				<li>
					Máy Java: <img alt="Dowload" src="{url path="images/icon/download.gif"}" />
					<a title="Tải game .jad" href="{site_url($game['download'])}?type=jad">
						<strong>Jad</strong>
					</a>
				</li>
				{/if}
				
				{if $game['file_android']}
				<li>
					Máy Android: <img alt="Dowload" src="{url path="images/icon/download.gif"}" />
					<a title="Tải game cho Android " href="{site_url($game['download'])}?type=android">
						<strong>Android</strong>
					</a>
				</li>
				{/if}
				{if $game['file_ios']}
				<li class="last">
					Máy iOs: <img alt="Dowload" src="{url path="images/icon/download.gif"}" />
					<a title="Tải game cho iOs " href="{site_url($game['download'])}?type=ios">
						<strong>ios</strong>
					</a>
				</li>
				{/if}
			</ol>
		</div>
	</div>
	{if $games_supports}
	<div class="mt10">
		<h3 class="bgh3">Hướng dẫn - Kinh nghiệm</h3>
		<div class="mcontent p5">
			<ol class="list-game-support">
			{foreach $games_supports as $game_support}
				<li>
					<img alt="Game support" src="{url path="images/icon/arrow_blu.gif"}" />
					<a href="{$game_support['link']}" title="{$game_support['name']}">
						{$game_support['name']}
					</a>
				</li>
			{/foreach}
			</ol>
		</div>
	</div>
	{/if}
	
	<div class="mcontent mt20">
		<div class="p5 intro">
			{$game['introtext']}
		</div>
	</div>
	
{/if}
</div>
{/block}